//
//  XLGCheckNewVersion.h
//  etionCBLogic
//
//  Created by chen on 13-8-29.
//  Copyright (c) 2013年 GuangZhouXuanWu. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "XLGCheckNewVersionIntermediate.h"

extern NSString *const XLGCheckNewVersionXLGCheckNewVersionResultNotification;

extern NSString *const XLGCheckNewVersionXLGCheckNewVersionResultNewKey;

#define XLGCheckNewVersionSuggestUpdateCode 1509151423

#define XLGCheckNewVersionForceUpdateCode  1509151424

#define XLGCheckNewVersionCheckFailedCode  1509151425

/**
 *  检查版本更新
 */
@interface XLGCheckNewVersion : NSObject

/**
 *  检查版本更新，检查的结果通过通知返回
 */
+ (void)checkNewVersion;

/**
 *  检查版本更新，该方法被其他请求关联调用
 */
+ (XLGResult*)checkNewVersionAttachDOM:(XMSDataOperationManager *)attachdom;

@end


@interface XLGCheckNewVersion (CViewBaseViewController)

+ (void)checkNewVersion:(id)progressDelegate completion:(void(^)(NSInteger nResult))completion;

@end